package com.caiyj.decorator;

/**
 * @Description:
 * @author:CAIYJ
 * @Date:2018/12/14 21:15
 */
public class ConcreteDecorator extends Decorator {

    public final int DISTANCE = 50;

    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public int fly() {
        int distance = 0;
        distance = component.fly() + eleFly();
        return distance;
    }

    private int eleFly() {
        return DISTANCE;
    }
}
